

function myBombBoxTwo(indexType, indexName, winName, frameName) {

//alert(indexType+"||"+indexName)
if(indexType==1){



 if(indexName=='请选择,'){
    indexName=[1980,01];

 }

var arrayy = [{
	tag : '年',
	scope: '1900-2018'
}, {
	tag : '月',
	scope: ['01','02','03','04','05','06','07','08','09','10','11','12']
}]

var data = {
	arrayy : arrayy,
	title : '',
	indexType : indexType,
	selected : indexName, //默认选中的值
	winName : winName,
	frameName : frameName,
	two:true
}

openFrameeeTwo(data);
return;

}


}

function openFrameeeTwo(data) {




	api.openFrame({
		name : 'actionsheet',
		url : '../../html/my/actionsheet.html',
		rect : {
			x : 0,
			y : 0,
			w : 'auto',
			h : 'auto',
		},
		pageParam : data,
	});




}
//main5所在城市,黄色按钮
function CityList(index){
	//个人基本信息
	if(index==1){
		var data={
			winName:'edit_address_win',
			frameName:'edit_address_frm',
//			title:$api.byId('diqu').value,
			index:index
		}
	}
  if(index==2){
		var data={
			winName:'add_address_win',
			frameName:'add_address_frm',
//			title:$api.byId('diqu').value,
			index:index
		}
	}

	setTimeout(function(){
	api.openFrame({
		name: 'slidinglistcity',
		url: '../../html/slidinglistcity.html',
		rect: {
			x:0,
			y:0,
			w:'auto',
			h:api.winHeight,
		},
		pageParam:data,
	});
	},200)
}
//城市mian1绿色按钮
function CityListtt(index){
	//装修报价
	if(index==1){
		var data={
			winName:'add_address_win',
			frameName:'add_address_frm',
//			title:$api.byId('diqu').value,
			index:index
		}
	}else if(index==2){
		var data={
			winName:'baojia_set_win',
			frameName:'baojia_set_frm1',
//			title:$api.byId('diqu').value,
			index:index
		}
	}


	setTimeout(function(){
	api.openFrame({
		name: 'slidinglistcity',
		url: '../../html/slidinglistcity1.html',
		rect: {
			x:0,
			y:0,
			w:'auto',
			h:api.winHeight,
		},
		pageParam:data,
	});
	},200)
}
//行业

function  myBombBoxById_11(indexType, indexName, winName, frameName){
//	alert(111);
//	alert(indexType+"||"+indexName+"||"+ winName+"||"+ frameName);
if(indexType==1){
if(indexName=='点击选择'){
indexName='男'

}
var arrayy = ['男','女'];
var data = {
	arrayy : arrayy,
	title : '',
	indexType : indexType,
	selected : indexName, //默认选中的值
	winName : winName,
	frameName : frameName
}

openFrameee1(data);
return;

}

//民族
else if(indexType==2){

if(indexName=='请选择'){
indexName='运动'
}

var parame = {
}

LoadingShow();

doAjax(findWork, "POST", parame, function(data) {

LoadingClose();

if(data.msg=='200'){


var arrayy=[];
var selectedArray={};
for(var i=0; i<data.works.length;i++){

	var aa ={
	value:data.works[i].regionName,
	id:data.works[i].regionId
	};

	arrayy.push(aa);

	if(data.works[i].regionName==indexName){
	selectedArray=aa;
	}

}



var data = {
	arrayy : arrayy,
	title : '',
	indexType : indexType,
	selected : selectedArray, //默认选中的值
	winName : winName,
	frameName : frameName,
	two:true
}

openFrameee(data);
return;


}else{

 	api.toast({
         msg: data.desc,
         duration: 2000,
         location: 'middle'
     });

}

}, function(data) {


});

}
}

//打开性别弹框
function openFrameee1(data) {

	api.openFrame({
		name : 'actionsheet1',
		url : '../../html/main5/actionsheet1.html',
		rect : {
			x : 0,
			y : 0,
			w : 'auto',
			h : 'auto',
		},
		pageParam : data,
	});


}


//打开弹框frm
function openFrameee(data) {



  api.openFrame({
		name : 'actionsheetById',
		url : '../../html/my/actionsheetById.html',
		rect : {
			x : 0,
			y : 0,
			w : 'auto',
			h : 'auto',
		},
		pageParam : data,
	});


}
